package com.ppc.service;

import com.ppc.dto.RegisterDTO;

/**
 * 通用服务的接口
 *
 * @author jianKangS1
 * @date 2023/12/20
 */
public interface CommonService {

  /**
   * 验证邮箱
   *
   * @param email
   * @return {@link String }
   * @description
   */
  String verifyEmail(String email);

  /**
   * 看email phone 有没有被注册
   *
   * @param phone
   * @param email
   * @return boolean
   * @description
   */
  boolean checkUserExist(String phone, String email);

  /**
   * 验证手机
   *
   * @param phone
   * @return {@link String }
   * @description
   */
  String verifyPhone(String phone);

  /**
   * 注册
   *
   * @param registerDTO
   * @return {@link Long }
   * @description
   */
  Long register(RegisterDTO registerDTO);


}
